package com.yzd.learnjava.generics;

public class CountedObject {
	private static int counter ;
	private final long id = counter++;
	public long id() {
		return id;
	}
	
	public String toString() {
		return "CountedObject " + id;
	}
}
